package com.lcy.struct.bTreePlus.disk.recovery;


import com.fasterxml.jackson.databind.ObjectMapper;
import com.lcy.struct.bTreePlus.disk.TestTree;
import com.lcy.struct.bTreePlus.disk.constants.BPlusPublicConstants;
import com.lcy.struct.bTreePlus.disk.core.BPlusTree;
import com.lcy.struct.bTreePlus.disk.file.AbstractFileWriter;
import com.lcy.struct.bTreePlus.disk.file.FileUtil;
import lombok.SneakyThrows;

import java.io.FileNotFoundException;
import java.io.RandomAccessFile;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * @author lucongyang
 * @date Created in  9:25
 * @description 日志写入系统
 */
public class LSN {
    private static final String UNDO_LOG = TestTree.root_url + "undo.log";


    private static class LSNHandler {
        private static final LSN INSTANCE = new LSN();
    }

    private LSN() {
    }

    public static LSN getInstance() {
        return LSNHandler.INSTANCE;
    }
}
